package com.sale.system.dubbo;

import com.sale.system.api.RemoteInventoryAccountingService;
import com.sale.system.service.ISysInventoryAccountingService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 存货核算服务
 */
@RequiredArgsConstructor
@Service
@DubboService
public class RemoteInventoryAccountingServiceImpl implements RemoteInventoryAccountingService {

    private final ISysInventoryAccountingService sysInventoryAccounting;

    /**
     * 获取该账套下的成本核算方法(1、移动平均法，2、先进先出法)
     */
    @Override
    public int getCostAccountingMethod() {
        return sysInventoryAccounting.getCostAccountingMethod();
    }
}
